<!DOCTYPE HTML>
<html  lang="zh" xmlns:th="http://www.thymeleaf.org">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="white-bg">
    <form id="form-financialManagement-add" th:object="${partApplication}">
        <input id="partId" name="partId" th:field="*{partId}"  type="hidden">
        <div class="middle-box text-center animated fadeInDown">
            <h2 style="margin-top: 40px" class="font-noraml" id="title-content"></h2>
        </div>
    </form>
    <div th:include="include::footer"></div>
    <script type="text/javascript">

        $(function(){
            var receivePeople = "[[${receivePeople}]]";
            var partName = "[[${partName}]]";
            $("#title-content").text(receivePeople+"申请"+partName+",是否通过?");
        });


        var prefix = ctx + "business/inventoryRecord";
		function submitHandler() {
            $.ajax({
                type: "post",
                url: prefix + "/outBoundAuditPass",
                data: {
                    "partId":$("#partId").val(),
                    "auditStatus":"1"
                },
                success: function(r) {
                    if (r.code === web_status.SUCCESS) {
                        $.modal.msgReload("审核通过！");
                    }
                }
            });
		}
	</script>
</body>
</html>
